package ai.zixing.framework.beans.factory;

/**
 * IOC 容器的父接口
 */
public interface BeanFactory {

    Object getBean(String name) throws Exception;

    // 泛型方法,入参是当前类或者其子类
    <T> T getBean(String name, Class<? extends T> clazz);
}
